package com.zhoust.design.strategy.stategy;

import com.zhoust.design.strategy.annotation.PayCodeAnnotation;
import com.zhoust.design.strategy.intf.PayStrategy;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

/**
 * @author zhoushengtao
 * @version v1.0
 * @date 2021/11/1 20:47
 * @desc 云闪付
 */
@Component
@Slf4j
@PayCodeAnnotation(payCode = "3")
public class UnionPay implements PayStrategy {

    public void pay() {
        log.info("我是云闪付，我开始云闪付支付逻辑。。");
    }
    public void payStatus(String payId) {
        log.info("我是云闪付，我开始查询payId={}的支付状态。。",payId);
    }
}
